I've remixed this part for attach the switch to my Ikea Lack enclosure using screws. The switch is located behind the Ikea Lack table.
I've printed two versions of this part using PETG and PLA. I recommend use PLA.
How to reduce the clip flexibility
Put some hot silicone at the middle of the clip for reduce the distance and make it more rigid.