Really difficult to tell, the previous weight loss might have weakened his heart, or might have been caused by organ/ metabolic issues, or the 2 events could be totally unrelated.
What diet was he on, did the vet test for parasites?
Another question I would ask is what was the temperature in the room last night? I ask this because over here I saw several gliders their owners thought were dead but who were in fact in torpor state (usually induced by cold temperature, more likely to happen to lone gliders, even more glider with low weight since it's a way for the body to save energy, unfortunately it often proves fatal to weak gliders)