I do some test with the latest version 9.104.0.1 with .net 4.8 + EF 6.5, got the exception. after downgrade to the 9.103.9.3,it's ok.
The website isn't using parameterized queries, which is a fairly serious security flaw. Most likely, your mother is putting a single quote in a field where the programmer didn't expect it, and because ...
Is your feature request related to a problem? Please describe. Whenever SqlClient throws a SqlException with the message "Login failed for user '<token-identified principal>'" [sic] it should provide ...