It's been ages since I've dealt with breakables. There are some settings that might help, if you haven't already encountered them. Here's a thread with a similar question.
There's a later post with the additional text for when the war is won as a Hippy but here it is again. I hadn't thought to get a Wossname but now I'm curious. :)
I use BatBrain in the same way and it hit me immediately after updating KoLmafia to any release later than r26738. The first thing I, normally, do after logging in is to complete the Daily Dungeon and in every combat I get the error described.
I will check r26759 this morning.
Edit: Tested...
I don't know the code well enough to say for sure but could it be connected with the changes made in r26737? In that release vykea was made a reserved word.
I can't speak to your core question but there is a script that does a pretty good job of handling restores during play: Universal Recovery. It was originally written by Bale and forked by @fronobulax in 2019 to keep the script functioning.
I know. I was just reporting it for general awareness. Presumably, as time goes by, script authors will make updates. Then I'll make the changes manually for those scripts that haven't been updated in a while or are no longer maintained.
In the scripts that I have installed I see my_path_id() used in the following:
Autoscend
ChIT
TourGuide
Ezandora-Asdon-Martin-GUI
Ezandora-Bastille
Ezandora-Consume
Ezandora-Genie
Ezandora-Helix-Fossil
Ezandora-Source-Terminal-GUI
Excavator
PocketFamiliars
With r26699, in a SC Fall of the Dinosaurs run, the Maximizer just recommended that I pick up a pale horse at The Horsery to get more cold resistance. This is directly from the Maximizer frame.
Edit: The Maximizer is suggesting The Horsery for many things.
Edit: Okay that was odd. I saw...
I've noticed some weirdness with the diary, and general L11 quest stage oddness recently as well, and I attributed it to Fall of the Dinosaurs quest processing not being handled yet, but I just got to L11 in a Journeyman run, on an alt, and am also seeing unexpected behavior.
Visiting the quest...