Ghost devices can't be deleted due to error: Oh No! Something Went Wrong! Error 500: Internal Server Error URI /device/save

I have some devices that aren’t working, and have noticed that their routes are listed as:

This Device (0C0B) ↔ Unknown Route (????) ↔ Home Hub

So I’ve followed the steps outlined in this post: FAQ: How to remove ghost devices from your z-wave and zigbee networks but on Step 9, in the “How to remove a ghost device from your Z-Wave network” section, when I click Create I receive this error:

Oh No! Something Went Wrong!

Error: 500: Internal Server Error

URI /device/save

Reference Id 0076ba69-c1cc-4ff1-af4c-c73e77282f3a

Date Sun Oct 17 17:38:20 UTC 2021

How can I get these Ghost devices removed?