Currently, NetBeans IDEs are not allowed to call “SaveAction” from a user macro, as this keyboard overrides “Ctrl-S” with:
"" delete-previous save
This means that there is a way to prevent the OS from sending an audio error , but reading about it, it seems that other users are complaining about this behavior and now several solutions have been presented that allow us to configure these behaviors in the future.
Learn more about this here.
The only solution I can think of is to disable the sound system error.
source share