I've been looking around to try to find a solution but so far I haven't found anyone that had my exact issue. First my problem was that when using Chrome maximized (what i mean here is that it was in the second screen that you access with the three finger slide gesture) the screen would keep switching back to screen one (the screen with the dock). I thought this was the only problem, but then I opened finder and found that it would keep closing and then would pop back up a few seconds later.
That kind of crash is often caused by "Google Drive." If it's installed, I suggest you remove it according to the developer's instructions. You may need to boot in safe mode to do so. Back up all data before making any changes.