What exactly are you trying to "fix"?
Your problem doesn't sound related to this one at all.
I lost free space on an APFS formatted hard drive – two times!
The first time I thought I had some hidden files, so I formatted everything.
The second time I had the same, and then no free space more at all. Suddenly, the hard drive did not worked anymore because of an error with the partition table, and so I had to format again – now as HFS+. The hard drive, which was new, works 100%.