Unfortunately, there was an update late last year that gave us a lot of cool stuff, but also gave us the build attack. It’s a bug that showed up only a few months ago.
The best way to avoid it is to get into the fighting stance before you try to build or place objects. You will eventually pop out of combat mode, but it does work.