Traceback error when attempting to add a reference or background image in 2.8
Just had this same problem.
I was trying to add the image to a hidden collection.
Adding to an unhidden collection gave me the reference.