間 => while; during; between ~ N4
瞬間 => At the very moment N3
Short period of time
間に => while; during~ something happened N4
に代わって => instead of; replacing; on behalf of ~ N3
[間「あいだ」]/[間「あいだ」]に => During A, During A (before A is finished/over) N2
Time, Situation
代わりに => instead of; as a substitute for​; in exchange for; in return for N3
~ といっても間違いない => although I say; although one might say ~ it doesn't matter ... N1
Explain
[代「か」]わり => Not A, but B, B in place of A, Instead of A, B; In exchange for A, B N3
Comparison, Exchange