Autopilots do fail but even the least reliable ones (KFC225, with its "smoking servos") do work some 99.9% of the time, and using one reduces pilot workload massively, and thus massively increases safety.
Most accidents (under IFR) were directly or indirectly caused by pilot workload, not by a lack of IFR theoretical knowledge