you've probably solved this one already, but I found that this issue was caused by the Firefox browser (at least in my case). Switching to Brave solved the error in the console and loaded my model just right.
I previously tested my model on https://sandbox.babylonjs.com/ and the gltf validator on https://github.khronos.org/glTF-Validator/, but it didn't find any issue in the file itself.