Can not get rid of the compass variance error

Hello Guys!
I’m setting up my plane and I keep getting the message that there is a high compass variance, as the EFK seem to be very high. Could this be because the GPS is very close to the battery, hence is giving it high interference? Any other possible issues?
Thanks in advance!

it could be. Keep at least 10 cm distance between your mag and any other electrical component/wire.

thanks! Once I moved it everything worked perfectly