They are both correct depending on how specific you want to be, but I prefer "an education" (a course of education). "Education" can be both countable and uncountable.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: