Not sure if it works for you in this case, but always make sure both displays have the same windows dpi text scaling set. This fixed the issue for me in the past.
Thats a smart move, if it still gives errors you could delete those xaml files and they'll revert to the default xaml views, which should be error free.