I first got this uncaught error on site and then I tried to uninstall LMS from my site and I get the second error from bench
Migrate the site and build app (bench build --force)