Text this: BPS and near-BPS black holes in AdS 5 and their spectrum in N $$ \mathcal{N} $$ = 4 SYM