I got the same error. The weirdest part about this error is that it didn't show up in a local and an ubuntu vps installation but it does break on my managed hosting environment. There is a discussion here https://github.com/PrestaShop/PrestaShop/issues/38894 but the hosting environment is never mentioned.
edit:
The environment was mentioned here after all https://github.com/PrestaShop/PrestaShop/pull/38905
tl;dr make the following changes
https://github.com/PrestaShop/PrestaShop/pull/38905/files
and the backoffice will probably be fixed.