UPS with adaptive load handling