It turns out the problem was with control.nacp.
- I repacked all files into NSP, including the original control.nacp, using the hacpack.exe console. Everything runs.
- I repacked all files into NSP, including control.nca (created with NSPack). Doesn't work.
- I repacked all files into NSP...