Replace all instances of new FormatException() with a more detailed message explaining what was expected and what was found instead.
This will improve the user experience for scenarios such as https://stackoverflow.com/questions/70624373/error-when-trying-to-get-data-from-mysql-using-entityframeworkcore.