I am receiving these events:

"Simulated option assignment before expiration - Automatic Assignment"

 in my backtests with options in a seemingly random way, which is very bad for the consistency of the results. 

How can I disable them?

Thanks