This was in Microsoft Edge latest (134.0.3124.93) on Windows 11 Pro.
Regardless of this message, it appears the gallery view functionality is working correctly as it did before. So, it just looks like a false console message?
Note I previously raised this issue for v3.11.0 but it was automatically closed due to inactivity: