However there is another risk of it flying up and slamming into the ceiling for most types of lifts. For that kind of malfunction there is often no safe guard. A lot of lifts are of the type where they use a large weight which is about half the weight of the maximum load capacity of the lift. This weight is used as a contra weight and hangs in the elevator shaft (so it goes down if the lift goes up). If the brakes in the engine on top of the lift shaft fail there is nothing stopping the contra weight and the lift will fly up.
This is a YouTube video of that happening: https://youtu.be/Ys0rDAxdd-g (warning its not graphic but obviously a disturbing thing to see)