The new 'UncookedOnly' module type that was added in 4.24 is not visible to Blueprint nativization, and thus it does not know to exclude these module types from the generated Build.cs file when they are found to be a dependency of the Blueprint asset.
Current suggested workaround (from the forums):
For testing: See
UE-84832 (Expected result: Match3 should continue to be able to be packaged successfully with nativization enabled after this fix).
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-86099 in the post.