My recommendation is to buy a handful of Dandelions and use the trial and error approach.
It's a few tenths of a millimeter you can remove from the rear, keeping the radius parallel front and rear, if you get too far the springs pop out, you stop just before that, when the plastic gets thin, feel it with a nail carefully.
The 50mm and 55mm 1.2 both needs trimming of the rear element all the way to the 'rear aperture' painted circle to clear, the rest you have to shave off the Dandelions rear, study the images. This is a great risk since you will be removing the aluminium that is holding the rear lens element in place.
Good luck, you will need it!