I don’t know what to attribute this to. Let there be advice.
1. Save the game (go through the checkpoint).
2. Quit the game.
3. Go to the folder with the saved game (\ Trine \ profiles \ default \ save \)
4. Open the saved game file (for example, save_slot_1.dhs) in a text editor.
5. In all lines like “player_hp, 0, XXX, XXX, XXX, 0,0” and “player_energy, 0, XXX, XXX, XXX, 0,0” replace three non-zero values (marked with “XXX”) with larger ones. For example, the original is 200 by 1200.
6. Save the modified file.
7. Enter the game and load.
Now there is a lot of health and energy.