I have recently been getting a lot of errors in Google Search Console saying that my search page has a lot of soft 404s, because whenever it enters a search term into my site that returns no results, the site returns a legitimate page with a 200 status code saying "No results were found." It is my understanding that this is how the site should behave; the user gets a 200 status code because the page they requested was the search page, and it was found and rendered, even though it has no search results on it. 404 errors should be saved for pages that were actually not found. So my question is, why is Google Search console treating these query results as errors, and how do I resolve this issue?
If it makes any difference in the answer, all the errors were from instances where Google entered a search term that ended with ".html". For instance, "/search/?search_term=stbjhhged.html".