Electric cars are notoriously unreliable because there are just that many things that can go wrong. For example, a battery pack on average will monitor about 400 temperatures and perhaps 200 voltages. Its inherent design means that it undergoes many thermal cycles, has thousands of fasteners and up to a hundred switching circuity components inside various isolated power supplies. The deviation of any parameter from normal requires an immediate shutoff at risk of a lithium fire that cannot be extinguished.
You could not even imagine the amount of engineering that goes into making sure the fasteners are positive locked in a redundant manner, whilst preloaded against temperature change, without breaking isolation.
Yet, a Tesla is, in general, relatively reliable. Maximum props to them on a job well done.