There is a known issue that some users with old accounts can’t log in with Apple ID.
How to solve the problem
Settings
Card with your name (Apple ID, iCloud, etc.)
Sign-in & Security
Sign in with Apple
theoct
Stop using Apple ID