Is top priority grammatically correct?
There is no grammatical issue here, simply an adjective and a noun. Be careful with the word priority. It means "precedence, especially regarding relative importance." The sentence "Such-and-such is the top priority" is not good. Careful speakers say "Such-and-such has top priority."