If your server is running CloudLinux with LVE, you can set limits for your users. Note that cPanel itself does not impose this kind of limits.
To modify the LVE limits for a user, in WHM navigate to the CloudLinux LVE Manager interface (WHM >> Home >> Server Configuration >> CloudLinux LVE Manager) to view LVE Manager information for accounts on your server.
Recommended CloudLinux values:
Typical Hosting Account
High-end Hosting Account
You can read more on LVE limits in CloudLinux's documentation here.