Unity stuck at “User open project:initial asset database refresh”

I’m using version 2023.1.0b12, which was working fine before, but yesterday the project suddenly started reporting errors after making some changes. Finally after trying asset/reimport all, the project keeps getting stuck at “User open project: initial asset database refresh” when loading.
Creating a new project doesn’t cause this problem.
I’ve tried restarting Unity and reinstalling Unity;
Deleting the Iibrary as well as the temp folder;
Using a higher version of Unity;
None of which have resolved the issue.

Please share some suggestions to fix this issue.

See this post for a workaround: 2023.3.15f1 LTS - Initial Asset Database Refresh Editor Hang