Hello, I am facing similar issue as reported a few months ago: room.energyCapacityAvailable returns null due to corrupted spawn store
I am running local server using steam and developing new version of my code there. Frequently I see errors caused by room.energyAvailable being null. Spawn is displayed as having 0/0 energy when this happens, and I use system.resetAllData() to resume testing.
Contrary to issue mentioned above, I do not pass energy structures to spawnCreep call.
Not sure how to reproduce - I guess it might be connected to either pausing / restarting the code and/or editing the code in external editor while server is running, but didn;t pinpoint any specific scenario yet.