The Magnet should be pushed very slightly further than flush, this will make the Holder contact with the Printed plastic surface which has much more friction than the Nickel plated Magnet.
Insert all magnets with the same polarity, this prevents the magnets from snapping together and destroying each other.
All the required settings for the FreeCad model are in the Revolution Sketch.
The author marked this model as their own original creation.