Same issue here.
It occurred in version 9.8.2, and upgrading to 9.8.3 didn’t resolve it. Downgrading to 9.7.1 didn’t help either.
The problem happened without any interaction with plugins or recent updates. Replacing the code at line 251 worked as a temporary workaround.
We’ll need to find a more stable solution until the WooCommerce team releases an official patch.