On previous Ducati's I've always removed that small switch as its a little fragile, (pain in the butt) once it's hanging loose trace the wiring until you find a three pin multi connecter.
Once you've found the connector separate it and you'll find that there's only two pins, bridge those pins and that eliminates the switch circuit so no more problems BUT you then have to remember to lift the side stand before moving off.
It's been a mod that's been done by lots of owners BUT as I've already said you have to remember to flip the side stand up "there's no reminder now" otherwise you could have it dig in and then whoops.
Hope this is of some help as I know of quite a few owners who have had problems with that item and have solved it this way BUT if you do this mod and you drop the bike DON'T blame me.
Geoff