Two important misconceptions:
First, objects approaching the speed of light do not...not...gain rest mass, m. That's why it's called "rest" mass; it's the mass we observe (in kg for example) when the object is at rest re us. Rest mass, BTW, is the mass in e = mc^2, which is the energy equivalent to that rest mass.
What objects gain is inertia, M = m/sqrt(1 -(v/c)^2), which means it takes more and more force F = Ma to keep objects accelerating even though the rest mass, m, has not changed. And that's why objects with rest mass cannot reach, let alone exceed, light speed, there is not enough force in the whole universe to keep the objects accelerating as their relativistic inertias (M) approach infinity.
Second, photons are rest mass less. So M = m/sqrt(1 -(v/c)^2) does not apply to photons and any other rest massless particles. But they do have momentum, which has been measured in the labs and is used, for example, in laser applications. And that momentum is expressed by E = Mc^2 = Pc = hf so that P = hf/c is the momentum of photons with energy E = hf and frequency f. Note M is in fact the relativistic inertia cited above.
Also note that this photonic momentum comes strictly from the energy of the photons. There is no rest mass involved. In fact, we can show [See source.] that when anything travels at v = c, light speed, it cannot have rest mass. That is, when v = c, m must = 0.
Also note, P = hf/c is per photon. h is Planck's Constant, a very very small number that drives P to be small as well. And dividing by c, which is a very very large number, makes P even smaller. So to check out your flashlight assertion, which is incorrect, look up and plug in some visible light frequency (say green), plug in h = 6.63E-34 J.s, and divide the whole thing by c ~ 3E8 m/s. You will see the momentum of a single green photon is very very very tiny indeed.
A 60 Watt bulb will burn your hand at a distance of about 1/2 inch or so. That's 60 J/s = E/T = NPc/T where N is the number of photons and T is the interval over which N is pumped out; so for your flashlight to burn someone's hand, you'll need N/T = 60 /Pc = 60/hf photons per second pouring out of that flashlight. And that's on the order of 10^34 photons/second. As intensity can be measured in photons/second, I think you can see your puny little, 1 Watt flashlight will hardly be pumping out that many photons per second. And that's a good thing, as you wouldn't want to burn your friend's face when you shine the torch into his eyes.