After three hours of studying, my back aches a lot. After three hours' studying, my back aches a lot.
The placement of the preposition at the front is fine. Much is seldom used in affirmative sentences. In usual use, learning is an effect of studying; studying i