Too many boolean operations can lead to a blank screen

For example, if you use the qrcode generator to come out with squares, one layer per square, if you select them all to merge, you will just have a blank. I have to select a certain number of them to merge them in stages to finally get the result I want.