With the GNU split command installed as gsplit (either via MacPorts or Homebrew), this program can be accomplished with the following one liner on macOS or Linux.
for file in *.nsp; do mkdir "${file%%nsp}nca" && gsplit -b4294901760 --numeric-suffixes=00 "${file}" "${file%%nsp}nca"/"";```
You'll then need to set the archive bit on the .nca directory. You can use NX-shell for that (select the .nca and hit Y for options)
This hasn't been tested under Sonoma but this also used to work directly under macOS: https://github.com/joshenders/macos_eject/blob/master/_macos_eject.command#L102