I know this issue is marked as solved, however, I found I kept getting this Kernel Panic since 2019, when I added a Sabrent Rocket 1TB drive. full details:
https://forums.macrumors.com/threads/upgrading-2013-2014-macbook-pro-ssd-to-m-2-nvme.2034976/page-340?post=29631464#post-29631464
To fix this I am currently trying SsdPmEnabler and NVMeFix kernel extensions for mac:
https://github.com/kvic-z/SsdPmEnabler (has good install instructions)
https://github.com/acidanthera/NVMeFix (has specific fixes for similar bugs)
Please could other people suffering from this issue try the above and report back?