Please find the error log messages that I am getting below.
OutOfMemory occurs not in Java but because in less time, the transaction manager or somebody tries to persist this again and again increasing the logs. The log file size grows beyond the allowed file system size. It causes the server to lack resources to write new logs and in turn bringing down the server which is trying to persist the entity which it cannot because of SQL exception.
Following logs repeats.....