What kind of phone do you currently have?
There is a pro mode in most of the premium phones where you can manually adjust the focus as well to take those macro pictures.
I hope this helps!
I just replied but I don't see it so I don't know if this will be a duplicate or not. But this happens to me on my unlocked S20+ that received the update last week. So what I do as a workaround is take the picture with the 64MP setting from far enough away so I can get a nice clear focus, then zoom in and crop what I need. Better than nothing. Maybe that can help you too