Check ignition relay if the battery is OK. But maybe battery lost juice and voltage drops too low when the starter is trying to crank the engine so relay disconnects. Try connect a good battery, maybe car battery if you have one and test it. Or just connect voltmeter to the battery and see how low voltage drops during cranking the engine.