Is the odd head shape critical to the function of the post? Or just another place to grab the bolt to turn it if the hex opening gets stripped.
Something like this isn't in stock near you?
https://www.homedepot.com/p/M5-0-8-x...4798/204283618
This is similar to what I used to fix my dropper post a while back.