resources: handle overflow when aligning start of available area