Yes, 'for two years' does not fit very well into the middle, though it is possible. Different kinds of adverbs have different ranges of freedom. Consider 'not', for example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.