So I reinstalled Ledger Live. I open it and go to "restore device from recovery phrase", select the nano X device, and the instructions are as follows:
If you only forgot your Ledger Live password then choose "Skip device setup" instead of "Restore device from Recovery phrase". There is no need to create a new wallet or restore an existing one since your device hasn't been wiped.