Position should be fixed in 0.0.19 with configurable "Scan Range Limit".
I think with any reasonable values, it should end up within map bounds, but beyond that, it can apparently easily crash factorio - not just print Lua error, but actual crash to desktop with something like "Error Chunk.cpp:701: Trying to make chunk at unreasonable position [-32773, -32773]".
Seem to happen when you try to scan beyond the edges of position limits, making factorio generate map chunks there.
Map limits for that kind of thing seem to be [-2^15 * 32, 2^15 * 32], but I didn't add the check, as it seems unnecessary if even factorio itself doesn't expect anything to go there.
Also added default scan range option and "Detect Stationary Enemies" flag, which should revert https://github.com/mk-fg/games/commit/fdc880af change in 0.0.3 and allow to detect stationary stuff too, if it's useful, with comment on performance in the option description.