In my case resource packs are not used. Adding and removing them does not fix the error.
The only way to escape this error (in my case) is by creating a new world without turning on any of the experimental function and without adding any kind of resource /behavior pack.
However I'm still currently unable to play on older world as they still retain the issue.
ok thank you, I'll do that.
I am eternally grateful for the resolve. The bug is no longer present and the scaffolding works perfectly.