I completely agree the SSD is failing. The SSDs on the MBPro 13" (2016 & 2017) non-touchbar models have an extremely high rate of failure. Unfortunately most Apple techs have no clue how to interpret a Kernel Panic log. The good news is you can install (or have installed) a third party OWC replacement SSD into this laptop, but Apple will not do it for you (maybe an AASP will, but best to ask first).
I would caution you whether it makes economical sense though since this model laptop is known to have other design/manufacturing issues such as an issue with the internal Display Cable and the Butterfly Keyboard. In addition, this laptop also has USB-C ports that wear down so that cables longer fit snugly which leads to intermittent connections. Unfortunately these USB-C ports on this particular model are integrated onto the Logic Board so fixing loose ports involves an expensive Logic Board replacement.
If you have never had the Top Case Assembly replaced, then you will likely need to have the Battery replaced soon since the battery is likely worn out or failing. The Top Case Assembly is the part which contains the Palmrest, Keyboard, Trackpad, and Battery. An official Apple battery repair will cost at least $250 US depending how the repair is performed.
Also, this 2017 laptop is now considered "Vintage" so repairs are only available until about 2025 as long as the necessary part(s) are still available. Normally there is a 90 day part warranty for repairs, but Apple may not be able to honor a part warranty if the part is no longer available even the next day. macOS 13.x Ventura is also the last supported version of macOS which can affect the ability to keep some third party apps up to date if the developer only supports the last three versions of macOS.
Hope this helps.