find some general approach strategy here:
check the project.json / referenced Packages if it is available with the Windows compability
Troubleshooting Guide from @Yoichi can be referred
and finally also use the debugging panels, when inspecting some issues more in detail
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum
for correct statements but still throwing exceptions / validation messages we do delete and retype it. But in a case that a datatable has less columns as we do use for e.g. adding data on it we do fix by consolidating the dt population and the dt structure