FYI, "Verified" software or "Verified" Developers does not mean the software is safe. Technically no software is truly safe. It is a mistake to assume that the software available in the Apple App Store or from "Verified" developers is safe since some devious developer's can be very clever in finding ways to circumvent Apple's rules and slip nasty things past Apple. You should still perform due diligence and investigate the history of the developers and apps for any third party apps you want to install on your computer.
If you feel you may have malware on your system, then run MalwareBytes to scan the Mac. There is no need to keep the app after scanning your Mac (there is an uninstall option on one of MalwareBytes' menus).
Unless you've enabled remote access to the Mac, installed dodgy software, disabled any of macOS default built-in security, or visited a questionable website or email/text there is very little chance your Mac has been hacked. Most likely the issue is due to some connected device, some third party app, or the program you are developing (the latter is most likely). To look for possible software issues you can run EtreCheck and post the report here using the "Additional Text" icon which looks like a piece of paper. If you give EtreCheck "Full Disk Access", then the summary of recent logs will be included in the report which may provide some more clues. I'm not a Mac software expert, but the report will be useful for any other more knowledgeable contributors who read your post.
Try disconnecting all external devices in case one of them is causing a problem.