Set DummyPacketInterval in firebird.conf to 60 seconds and restart Firebird.
Do not modify firebird.conf here. Leave DummyPacketInterval setting commented out, or set it to 0 (default value). Now restore database through services api, ie.:
gbak -rep -user sysdba -password masterkey -se serverip:service_mgr C:\test.gbk C:\test.fdb
Do not use verbose parameters. The database must be big enough so that the restore process takes more than about 4 minutes. After that time, the server crashes, logfile says that it "terminated abnormally (4294967295)".