Overwriting the drive before installation doesn’t really do anything, as the data is overwritten anyways. Especially since writing every cell also adds additional wear, and depending on the design of the drive (wear-leveling) you even might not be able to decide which cells are written. However having the OS encrypted is a good choice. Because ultimately you want to protect your data.
What I usually do for wiping SSDs (those that have full-disk encryption) is just resetting the ecryption keys as this renders all data on the drive useless. For that you have to check manufacturer-specific manuals if that’s possible.
The only thing I do is switching it to Advanced Format 4K sectors using nvme-cli if possible. Only reason to completely overwrite a disk of any type would be software encryption or testing/benchmarking for me.