Personally, I think it is functioning as intended. It is not in the best interest of this company to allow modification of the device to allow recovery of proprietary data or information in regards to how the device works. If you can unlock other functions via simple software edits in some file then it would be of the companies best interest to try and protect all of that somehow. I bet the other unit is going to be identical in terms of read/write in system. The new one might be on an older firmware/api, but I'm willing to bet it will act the same as this one.Android 10 has a system trace. I'm not sure if that was implemented on Oreo. That would be a start.
It might be as simple as you got a screwy device that was bugged out. It could be a update gone wrong that the device forced. You'll know when the replacement unit comes. Until then I probably wouldn't try the script - you don't know if that is going to make it skittish even more (even though it would produce error logs).