If repartioning is not an option, you can create a virtual filesystem of size 10 Gbyte and mount it under /opt. You can find some details in this
post. Do a backup of any existing file under the current /opt directory: you will restore the backup once you have mounted the filesystem under /opt.