There are any number of possibe solutions. Some of my other cars required a double press within a small time frame. This greatly reduces the probability of an accidental activation. You could further decrease the odds by requiring three presses in a short period or perhaps a long duration press followed by a short duration press (or vice versa).I am curious just how you would propose to modify the software to prevent the trunk lid from opening accidently without preventing opening when desired. A double press of the trunk release button? Three? A five second hold?
Another option (which seems very logical to me) would be to press and release the trunk release button followed by the car's door unlock button, within a short time period (say 1 second). This sequence would be programmed to only unlock the trunk, not the door locks.
I could think of several other options, all of which would be fairly simple logic sequences to code into the software.