Common pitfalls to avoid when building a barndominium include choosing the wrong location, not considering the local building codes and permits, underestimating the cost of materials, and failing to properly plan and budget for the project.