Demagnetization protocols for frustrated interacting nanomagnet arrays