Good question, but no easy answer. Unless they leave a note, the assumption has to be accidental.
Looking around you are right, it’s hard to pin down. I imagine most of the note writing prescription opioid suicides were probably already addicts, but who knows. I found this, don’t know how legit is.
Freegards