Lawyers have warned the legal sector is in crisis after the number of legal aid cases paid to solicitors fell 23% since 2019-20.