I had the same issue with my htc10.
As a last resort I assumed the card was loose in its socket.
I removed the card from the socket and then placed a thin piece of cardboard under the card and reinserted. I have not had a disconnect for around 3 weeks. Before this I was disconnecting at least 2...