Avoid huge gres malloc

Avoid huge malloc if GRES configured with "Type" and huge "Count".