I think I solved the problem, thanks a lot!
The widget has added a checkbox in UE5.2 to determine whether it can run in PIE, which doesn’t exist in previous versions.