FloorPlanView.ByLevel - overwriting/transaction issue

This is element binding. You can read about it and how to resolve your issue here: Element Binding in Revit