This can be remedied simply by placing the amount of pills allotted for a single day in a separate container, and not exceeding that allotment!
Overdoses occur BECAUSE pain meds can seriously affect SHORT TERM MEMORY and many users simply forget they just took a pill and take ANOTHER one. This is why it's very important to not take pills from the main bottle. ALWAYS SET ASIDE A FIXED AMOUNT IN A SEPARATE CONTAINER AND TAKE NO MORE THAN WHAT IS IN THAT CONTAINER FOR THE DAY.
Accidental overdoses are the responsibility of the user! Whatever happened to personal responsibility???
Are they a loss to society?