Guard check in module loader against integer overflow