This is a common complaint, and Capcom shared the following troubleshooting advice:
First, try the game in a different Nintendo DS to confirm where the problem lies. If it runs smoothly on another system, the fault may be with your own DS. If the game freezes on every console, it likely needs to be replaced.
You can either return it to the retailer where you bought it or send it back to Capcom. Returning it to the store is usually the faster and more convenient option.