This happened to me a bunch after I first got mine. I eventually sent it in to get it fixed, but for a long time I would just... wack my laptop against my knee, or otherwise hit it, until whatever was on the inside (the SSD, I suspect) wiggled back to where it needed to go. So long as I didn't bounce my laptop while it was on, it never bluescreened. Only after being transported in my backpack would that internal component get knocked loose again, only for me to beat the everliving crap out of it until it stuck back into its slot.
I think opening things up and taking a look at the SSD (even taking it out and putting it back in like we used to do with our GameBoys) would be worthwhile.