Problems with margins on exported maps when Using Blender and ArmorPaint

So I am using blender and armorpaint when I am working with a gold coin model.
The problem is that when I export from armorPaint, I get various problems.
If I bake the coin from a mesh that is smoothly curved along the edges, I experience strange artifacts in the exported maps from armorPaint. I think this is somewhat related to normals not liking the straight 90-degree slope of the mesh (which would be the case along with its edges) it also happens just at the UV-seam. If I, however, use a mesh that is slightly 45-degree slope the normals look fine but I get a black edge around the coin and the displacement opens up a hole around the edges of the coin.


You can see it clearly on the coins in the back of this image:

Which I think is because armor paint doesn’t do any margin or anything like that on its exported maps, at least by default. Because If I use Affinity Photo and fill up the dark areas of the maps exported from armor painter with whatever color seems to be at the edge, it works fine.

I am trying to figure out a pipe-line that allows me control over these things without using substance-painter or anything like that, or manually editing the maps. I am having trouble finding any reference around this. Any help is appreciated.