Sorry to hear that your little guy didn't make it. Sounds like you did the best you could for him, but sometimes it happens (even when you've done everything right)
Hopefully, you can set up your tank again when you're ready, get a little heater and give another betta a good home.