It could be still worthwhile to display a warning in the CubeMX pin editor, instead of subtly punishing developers who do not turn to the errata reflexively.
While we might sometimes think that an ignorant developer deserves it, punishing does not make much sense from a business standpoint :)