Using 'while' with 'had been' would make your sentence plagued with redundancy. 'While I was out' clearly suggests the time period which you were out for. Moreover, I'd refrain from using had been in the situations where I could avoid its use.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.