Cannot enable 2FA?

I cannot enable 2FA for some reason. This is a restore from backup and I can scan and add the code etc, however it just fails to accept the code when entered.

I also noticed I am getting a few errors now, including one that says Login failed from localhost “127.0.0.1”

Also, a ESPHome error " Error: Could not find one of ‘package.json’ manifest files in the package"

Not sure if these are related at all?

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:81
Integration: HTTP (documentation, issues)
First occurred: 8:42:28 PM (5 occurrences)
Last logged: 8:47:39 PM

Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/auth/token'. (okhttp/4.9.1)
Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/api/websocket'. (Home Assistant/2022.12.0-3026 (Android 12; SM-G973F))
Logger: homeassistant.components.http.ban
Source: components/http/ban.py:83
Integration: HTTP (documentation, issues)
First occurred: 8:42:29 PM (1 occurrences)
Last logged: 8:42:29 PM

Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/api/states'. (okhttp/4.9.1)

Thanks