(a) is interpreted as " He studied at university / in Canada" while (b) is interpreted as "He studied at / a university in Canada". Both are OK. The nuance seems faintly different because of the effect of the indefiniteness of "a".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.