Here is how to disable The disk you attached was not readable by this computer.
warning when drive with unknown filesystem connected to the Mac:
Works only on macOS 13 Ventura and newer!
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableUnreadableNotification -bool YES