I solved it for my model, running on a virtual Machine with Win10Pro 22H2.
I have to point out that I do not know what exact change was the key taht solved the issue, though I have my preference for the Hardware Implementation tab.
In Simulink Model settings:
Under Hardware implementation:
> Hardware board: None.
> Device vendor: Custom Processor
> char 8 / short 16 / int 32 / long 32 / long long 64 (disabled) / float 32 / double 64 / native 32 / pointer 32 / size_t 32 / ptrdiff_t 32
> Largest atomic size: integer: char / flating-point: none
> Byte ordering: Unspecified / Signed integer division rounds to: Undefined
> CHECK Shift right on a signed integer as aritmethic shift / UNCHECK Support long long
> Under Advanced parameters:
>> UNCHECK Test hardware is the same as production hardware
>> Device Vendor: Custom processor / Device Type: Matlab host computer
Under Solver:
> ACTIVATE/CHECK Treat each discrete rate as a separate task
Under Model referencing:
> ACTIVATE/CHECK Enable strict scheduling checks for referenced models
> DEACTIVATE/UNCHECK Propagate all signals labels out of the model
Under Diagnostics (main tab):
> Changed State name clash to warning
Under Math & Data types:
> Changed Application life span (under advanced parameters) to inf (previously set to auto)