If you click "Erase Device" instead of "Lock," you will perform a remote factory reset. This brings you back to the FRP problem mentioned in Method One.

Here are the most effective methods to reset your Sony Xperia without a password. 1. Using Google’s "Find My Device" (Remote Reset)

These methods will erase all personal data stored on the device's internal memory. Recommended Method: Xperia Companion (PC/Mac)

This timing is tricky. You need to press a specific combination the instant the phone vibrates.

If you reset the phone to bypass a screen lock (PIN/Pattern/Password), you will still need the Google account email and password that was last used on the phone during the initial setup wizard. If you don't know that information, the phone is effectively a paperweight via standard methods.