The stem top-cap bolt is just a pre-load to hold the fork tube tight against the stem... the stem bolts take all of the load when tight.
You could even remove the stem top-cap and bolt once the stem bolts are properly torqued to spec...
To remove the Star nut, just take a deep socket and tap out the nut through the bottom of the fork.
I recommend that you replace the star nut with a high quality expanding nut that is adjustable to fit your fork.
Amazon.com : Neco Headset Expander Top Cap Star Nut Plug Bolt Stem Expanding Nut Bolt Carbon Fiber Cap Cover Long Large Size : Sports & Outdoors
smile.amazon.com
View attachment 65558View attachment 65559