It's probably the HDD's sudden motion sensor doing it's best to protect the drive against your rather foolish, some might even say stupid, actions.
NEVER move a laptop when it is on, unless the goal is to kill the HDD. Portable, with laptops, means that if it's turned off, or at least in sleep mode, you can move it with ease relative to a desktop. It does NOT mean that you should move it while in operation. Doing so WILL shorten the life of your HDD, and it WILL greatly increase the odds that you will damage it in such a way that recovery of data will be impossible.
When a laptop is turned on it should be sitting on a nice FLAT surface. Not tilted, FLAT. It should also be a STABLE surface, not some wobbly table. It should also be a HARD surface, to make sure there's plenty of ventilation. So carpets, beds, blankets, pillows, etc... All of those are out. Even your lap is pushing it with modern laptops. In the days when the term was coined, laptops were 3-4 inches thick, and they didn't generate as much heat.
In the future, when you're going to move from one room to the other, CLOSE THE LID. Then wait about 5 seconds to make sure it's in sleep mode. AFTER that, you can pick it up and carry it to another room. There's nothing you can do about the damage you've already done to the HDD, but you can at least do your best to limit the damage you do in the future.