Hi,
I would think this is an application problem. You need to catch the exception and close the prepared statement, and reopen it.
Currently the backend caches prepared statements to speed things up for future queries. If you change the table definition, the server has little recourse but to throw an error.