When I moved to Sweden back in the late 80's, there was an ongoing scandal among the pilot community involving a guy who had had his medical revoked for having spent too much on flying training. He was judged by his AME as having inappropriate cognitive skills for a career as a professional pilot (no criticism of his flying ability, as far as I remember).
But that was in the good old days of course