Engine variables like screen_size can not suddenly disappear or something like that.

But you can, of course, make it disappear, f.i. with "screen_size = NULL;" or by writing at wrong positions into the variables memory. This would then cause such an error.