How to programmatically require a field using Inline Entity Form
I'm not sure if this will work out of the box for you, but I wrote this module https://www.drupal.org/project/require_on_publish to solve a similar problem. You might be able to borrow some of the ideas in there around adding constraints to custom fields to achieve your desired functionality.