Launch the Terminal app and issue the following command making sure to replace "<PID>" with the process number listed in the error message when you attempt to erase the drive. You need to erase the drive again so that you get the current PID to use with the Terminal app since the PIDs will change over time.
sudo kill <PID>
So if you just tried to erase the drive and received the error message in your photo, then the command would be:
sudo kill 285
If you use an outdated PID number or mistype the PID, then you may be terminating an unknown process with unknown ramifications. This "kill" command is performing a Force Quit on the process(es) associated with the PID.
You will be prompted for your admin password. Nothing will appear on the screen as you type the password, so press the "Return" key to submit the password.