MacPro 5,1 bizarre behavior and slowdown
My primary work computer is a MacPro 5,1 running Mojave. Last week it began behaving strangely with interminably spinning beachballs on all applications necessitating Force Quits, disappearance of all printers and scanners from System Preferences, inability to launch applications from the Dock or with an Open command from the Menubar, etc.
This led to numerous restarts in normal and Safe mode, NVRAM reset followed by glacially slow responses to almost every command. Disk Utility found nothing wrong with the disk (although the computer kept trying to startup from a backup disk rather than from the primary SSD, even after choosing the SSD in System Preferences.)
Out of frustration, I gave up and worked at home. I tried again on Saturday and was greeted by a screen full of small multicolored cubes (never seen before) that disappeared before I could take a photo of it.
This morning, the computer worked normally.
My question: what should my next diagnostic steps be? I am concerned that this may be heading for a catastrophic failure. Luckily, I have had a compulsive backup strategy for years, so that is not a worry. Would an Etrecheck profile help? Any other diagnostic steps recommended?
Thanks!
Mac Pro, macOS 10.14