I'm having a really weird problem. I added a metarig to the scene, edited the pose to fit my character,, apply it as the rest pose, applied loc/rot/scale, and Generated Rig. The problem is that on the rig that it generates there is a "bugged" controller in the image below.
On the left side is the controller in rest mode in the forward position where it should be. On the right side is the controller in pose mode where it slightly rotates on the Z axis, despite it being locked.
I thought the solution would just be to alt+R and G to reset rotation and movement but for some reason these controllers will not reset to the rest mode. And I don't know of any other way to apply the pose mode position to these. Even when I go to the skeleton layer that controls the problem controller I can't fix it because you can't move the actual bone in pose mode and it goes to the rest pose in edit mode. Does anyone know why this happens and/or how to resolve it?
Edit: just realized it causes problems with the hand bones and toe bone as well.
EDIT2: Here is the file. https://drive.google.com/file/d/1jk5RvFQrdlHRr4Pruz8Sk9br0QX3_IYm/view?usp=sharing You can see how the rig adjusts itself by going from the rest position to the pose position in pose mode.