A climate activist who stopped a train heading for the UK’s biggest power station has avoided jail as a court heard she has given up direct action because of the “shock” of being sent to prison over another protest.