Complex sentence: Later on, she returns to challenge the siblings, but when she loses, she is forced to relinquish all of her memories to the siblings.
Split into simpler sentences: Later on, she returns to challenge the siblings, only to lose again. Thus, when Kurami loses, she is forced to relinquish all of her memories to the siblings.