Strapi app stuck on loading with knex queries

System Information
  • Strapi Version: 5.4.2
  • Operating System: Windows
  • Database: PostgreSQL
  • Node Version: 18.17
  • NPM Version: 10.4.0
  • Yarn Version: 1.22.21

I ran a yarn build and the build was done correctly. Then, I ran the command strapi develop and my app is stuck at “Strapi Loading”. When debugging I saw all these type of knex querie going on in circle. I do not understand what i did wrong.
I deleted all my lifecycles.js files and deactivated all plugins except for users-permission.