Hi Xiao Qing Cheng,
I am also having the same issue with machines in my organization. But I was reading and saw a mention of "The issue might be caused by Symantec Antivirus". And yeah its true we use Symantec for protection.
May be you might also be having Symantec Antivirus.
And also testing the safe mode is honestly difficult, I have an audience of 300pcs, they randomly freeze, whether Windows 11 or Windows 10.
So Mr. Wesley any solutions will be much appreciated.