Hello,
If your IP keeps on changing while you are logged in on a cPanel session, then naturally for security reasons, cPanel logs you out detecting the IP change. There is nothing that we can do about this, since this is a feature within cPanel and it is only for the best.