How the engine decides boost is wrong
The engine management constantly compares the boost it has asked for with the boost it actually measures. Underhood Service, a US trade magazine for technicians, describes the two fault codes that result: P0299 for underboost and P0234 for overboost, set when actual boost strays from the desired or commanded value by a specified amount for a specified time. It calls them some of the most common codes on turbocharged vehicles.
The symptoms it lists are a lack of power and entry into a limp, or derated, mode "that puts less stress on the engine and turbocharger", sometimes with surging, a low idle and fuel-trim codes. Limp mode is the engine protecting itself. It is a symptom, not the fault.
Start with the codes and the data
Read every stored code, not only the boost code. Underhood Service says codes for the actuators that control boost must be resolved before moving on to P0234 and P0299. The freeze-frame data saved with a code records when the event happened, with the boost pressure and engine speed at the time, which helps pin down an intermittent fault. Clearing the code and driving on throws that evidence away.