Try booting into Safe Mode to see how it works. If Safe Mode works, then it means you most likely have some third party software installed which is interfering with the normal operation of macOS.
If Safe Mode does not work, then you can try seeing what apps & processes are accessing the external volume by using the following command (replace "<path-to-external-volume>" with the correct path to the USB stick). You can just use the Finder to drag & drop the volume onto the open Terminal window after typing "sudo lsof " making sure to leave at least one space after "lsof ".
sudo lsof "<path-to-external-volume>"
FYI, the only Mac Mini you could possibly make a bootable macOS USB installer using an M2 system would be for a 2014 Mini assuming you already have a copy of Big Sur or Monterey installers archived somewhere. An Apple Silicon M-series Mac is only able to create macOS 11.x+ USB installers by using the "createinstallmedia" utility (personal experience).
Since your M2 Mini shipped with macOS 13.x Ventura, you won't be able to download the older installers since they are not compatible with your M2 Mini. I'm not entirely certain if the "createinstallmedia" command will perform any checks even if you already have a copy of the older installers already downloaded using an older Mac.