Print on its side with supports like this, and insert a pause to place the M5 nut in place. Then continue printing on top of it.
The author remixed this model.
Changed the base, added a captive nut