I faced the same problem in Xcode 16.2.
On loading SPM screen, press command + delete to clear the SPM history.
command + delete
After that clear history, you can add a new SPM.
After these steps, i am able to add new SPM