Getting the "RangeError: Invalid time value" when I click "x" button available in altkit DatePicker

Here’s an issue that our tester raised: If we click the “x” button in the image below, The error mentioned above props up and destroys our application (if we don’t keep it in Error Boundary).

Is there a way to “Remove” the “x” button so that We can avoid this situation entirely? or is there a simpler solution to handle the error?