Welcome to our forum and thanks for contacting us with your question!
Unfortunately, there are no API options that could do that. You can write your own custom code to check if the date is valid and if not get to the input through HTML (and DOM) and update its CSS.