Hello,
You should leave automatic drive optimization enabled, even if your computer uses an SSD.
Windows 11 can recognize whether your drive is an SSD or a traditional hard drive and optimize it accordingly.
For traditional hard drives (HDDs), Windows performs defragmentation to reorganize files. For SSDs, Windows primarily uses a process called TRIM, which helps the SSD manage unused storage space efficiently.
Windows may occasionally perform limited defragmentation on SSDs when necessary, but this is normal and part of Windows maintenance.
So, to answer your concern, you do not need to worry about automatic optimization damaging your SSD or significantly shortening its lifespan.
You can check this by typing Defragment and Optimize Drives in Windows Search and opening it. Make sure Windows correctly identifies your SSD under the Media type column.
My recommendation is to leave the default automatic optimization schedule enabled. There is no need to disable it simply because you have an SSD.
You can read Microsoft's explanation here: