This is a well discussed post, modifying a gun and the legal repercussions. I am a former LEO and I know if you intend to shoot someone, the way you modify your gun has no bearing on the criminal case. The word is "intent". You will or will not be prosecuted depending on the circumstances.
Now if you accidentally fire the gun, then any modifications may come into play. There was no intent but the gun was fired. Was it a modification that rendered the gun unsafe? Was it careless gun safety? The prosecutor will review the circumstances and determine the charges, if any. With most actual shootings, justified or not, you can count on be sued. Most people do not realize that if you shoot someone in actual self defense, you'll likely go bankrupt defending yourself from a lawsuit by the victim or their family. Not right but that's the way it is, in good old USA. The laws should be if you bring a suit and lose, you have to pay all the defendants' legal fees and costs. This would eliminate a lot of frivolous lawsuits, but the attorneys won't let that law get passed.
My carry guns are all modified with lighter pull triggers, shorter length of pull, and shorter reset. I am not the least bit worried about legal problems. I have a safe gun that I can shoot easier, faster, and more accurately. My Shield 40 has the Apex kit and I have modified the gun even more.
Bob