Most UPS’s are not designed to BS6651 so have very limited surge handling ability. Earth and neutral are often bonded straight through. Bypass switches can operate during an overload, thus, leaving the surge to flow through to the equipment.