It only happens when you press the eject button? Rather than software-related, could it be hardware? The pressure of the eject button is pushing the drive back and causing it to make contact with something?
TL;DR. I see someone else already suggested try using a longer cable to test it outside of the case.
