A ballistic pendulum needs two separate models
The mistake
Using momentum conservation through the entire swing, or energy conservation through the collision.
Why it feels right
The problem has one object sequence, so one conservation law feels enough.
How to catch it
You conserve kinetic energy in the sticky collision or conserve momentum during the upward swing.
The first principle
During the short collision, momentum is conserved and kinetic energy is not. During the swing after sticking, mechanical energy is conserved if losses are negligible.
A bullet embeds in a block, then the block rises. Which laws apply?
Common wrong move
Energy conserved from bullet before impact to top of swing.
Correct
Momentum for collision; then energy for the post-collision rise.
Make a fresh prediction before referring to the worked example.