In gcam change your resolution settings for main cam from 12MP to 9MP. This will solve autofocus problem. Not a exact fix but works for me.

Here is the link for gacm I use:
https://drive.google.com/file/d/1-0dkkOe1H1gwqwMg0mS2-RDyDwGjT8Vw/view