Warning! Error encountered during contract execution [Out of gas] Funds Stuck in Contract Mainnet

I deployed an NFT contract on the mainnet, when I was testing it I used to wallets. During my deployment, I change one of the wallets to gnosis safe. I'm getting this error every time I use the withdraw function. This is the tx. https://etherscan.io/tx/0x820025aeb020e8e7923a6e8112700cb6cf8d0e73ce1c34aa08957715d4c86d58

    function withdraw() public onlyOwner {
        uint256 _balance = address(this).balance;
        uint256 _split = _balance.mul(95).div(100);


Withdraw function can only be called by the owner. If it's failing, it might be because the gnosis safe address is not the owner?