Landlords can and do get sued.
The first step in preventing this is to make sure all faults are rectified as soon as practical after they are noticed.
Then a good insurance policy is needed. Find out what it doesnt cover you for.
Insurance doesn't cover anything. Off the top of my head...