Had this issue, and turns out this if statement was the issue. Probably a bug since Apple has this listed in their documentation, but removing this and just return an EmptyWidgetConfiguration if the system is lower than 16.1 seems to have fixed it.
Topic:
App & System Services
SubTopic:
Core OS
Tags: