I'm still not able to replicate this on PHP7.4 or PHP8 using a stock build of v8 and v7.7.5.
If it "works" some days and "doesn't work" others, it's something going on with your host... Are they flipping PHP versions or is someone changing configurations on you?