A firm providing out-of-hours care in an area where a pensioner died after a painkiller overdose had "systematic" failings, the NHS regulator says.