I can't tell you why 'had been' in the main clause-- there must be further context-- but as for the dependent clause, we normally stick to past simple (or progressive). One past perfect per complex sentence is enough.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.