There is a very simple fix for this; there are screws specially designed that have a “double head”, like a small head with an additional mushroom head on top. You simply drive the screw into the subfloor, then using a tool like a screwdriver, you break off the mushroom head of the screw, leaving the first head in the subfloor and under the carpet and you can’t see it…simple fix! The screw is designed to break off and leave the rest of the screw in place. Good luck.