Hello,
Post code is not optional by default in WooCommerce. If it’s optional on your site then probably you use some third-party plugin that causes that. Try to disable third-party plugins that could be related to WooCommerce checkout page one by one to find out which one causes the issue.
Regards