Avoid all this by turning off "focus" on the shutter button.
Go into custom functions and do as described here;
Step by step:
Menu;
Spin little dial until you highlight the 5th Icon to the right,
Spin the big dial down to select custom controls, press set.
There is a bunch you can configure here, but to finish up quickly;
Highlight the first icon, (this is supposed to be a picture of the shutter button) press set
Spin big dial to select the 2nd icon in, for "Metering Start", press set.
Spin big dial to go down one icon to the AF On button, press set.
Select 1st Icon for AF, press SET.
Now, you will change focus only when you pres the [AF ON] button.
Shutter is left for metering and taking the photo.
If focusing using the [AF ON] button seems unnatural at first, try to get used to it. Give yourself a month or so before giving up on it. It's advantages are considerable in the extra control you have during shooting.
There is a VERY long discussion on the advantages of separating the metering and shutter from the AF control here;
https://photography-on-the.net/forum/showthread.php?t=46965