Can I apply for a patent for utility model after the invention patent is rejected?

If it is the same content, it will not work, because it does not meet the requirements of patent novelty.

If you want to reduce the risk, you can consider the same-day application method, that is, submit an invention application and a utility model application at the same time, provided that the patented technology is innovative in hardware.