It will heal
Unfortunately, there isn't any immediate heal for that.
It will heal over time as long as you don't continue to bite it more. If you have ever bit the inside of your cheek, you know how this goes. However, if you bite your cheek while sleeping, you are very likely bruxing, which is clenching or grinding your teeth while sleeping. That can lead to all kinds of problems from worn teeth to TMJ pain.