Follow the steps here to perform a secure erase that resets the cells and wipes any on-device encryption keys:
https://wiki.archlinux.org/title/Solid_state_drive/Memory_cell_clearing
You can do this from a live-boot environment if you wish. I would very strongly recommend disconnecting ALL other drives before performing this step as the best precaution against accidentally nuking the wrong drive. However if you choose to do this with other drives connected triple check you have the right drive selected before each step.