Packaging for Windows fails in 4.9.0 and 4.9.1

The project was working fine in 4.8, but fails every time in 4.9

I always get the error “Cannot open include file: ‘AssetEditorMessages.generated.h’”
I am not using plugins in the project and have not included this file anywhere in my code.