SSH key setup testing failure

URL of experiment:

Description of the problem:
I’m trying to set up an SSH key. I generated one and added it to my account but when trying to add gitlab.pavlovia.org as a host I’m encountering an error. How do I fix it? I’ve done this all before and never encountered this error.

$ ssh -T git@gitlab.pavlovia.org
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for gitlab.pavlovia.org has changed,
and the key for the corresponding IP address 51.38.228.163
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:T2DrKWawYCITtTclvmcJG/TnIXZrVwVyWVCvk6ISWSQ.
Please contact your system administrator.
Add correct host key in /c/Users/AVAL/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/AVAL/.ssh/known_hosts:1
ECDSA host key for gitlab.pavlovia.org has changed and you have requested strict checking.
Host key verification failed.

I uninstalled and reinstalled gitbash before trying to create a new key. That solved the problem.