Can the packaging of snack food be printed with the words national invention patent?

Yes, as long as the packaged products really use the patented invention technology.

If the product has nothing to do with the patent, you can't type the words national invention patent, otherwise it will be suspected of counterfeiting the patent, and the consequences will be much more serious than patent infringement. If the circumstances of counterfeiting patents are serious, they shall bear criminal responsibility.