Solution
This issue could be caused due to the LabVIEW installation updating some CVI Runtimes that affect the behavior of the buttons.
One workaround is to change the Runtime Engine Binding options to select the 20xx side-by-side version, where 20xx refers to the installed version of LabWindows/CVI. To do this, go to LabWindows/CVI, then click on
Build>>Target Settings, and then on
Run-time engine binding, select the 20xx side-by-side option for either the entire application or for executable only, depending on your needs.

After this, you should be able to build your application correctly.