i think if claude code doesn't want to work anymore it just goes full retard mode for some time until you give up
there is no other explanation that it works perfectly fine for hours and then goes back to ape shit without a reason
its just pissed off and tired