I'm using nicehash, It is also happening on Betterhash, and I even tried using Claymore standalone mining on a demo address, it still gives " cannot write buffer for DAG ".
I've experimented a lot and observed that as soon as the eth epoch #379 starts to load up, the DAG size becomes 3.96GB and the DAG error comes up, But if it's still working on epoch #368 (size 3.78GB) then it keeps working fine.
I have tested on Windows 10 Build 2004 and also on Windows 10 build 1708 (just to make sure it's not windows update related) and have also tried 6 different Radeon Drivers ranging from Dec 2019 to Sep 2020 but all are having the same issue. On the Phoenix, it seems to work fine and Team Red Miner also works fine.
I have my Virtual memory set to 250GB (yes TwoHundredFifty GB) and I have upgraded my 4GB to 8GB system RAM and it still gives the same error. I've tried using the Gen 3 link speed on the PCI-E bus, the same error. This issue is only in Claymore, seems to me that somehow the claymore is unable to access more than 4GB of VRAM on 8GB RX580 cards. Please, if anyone found a working solution, post it here. Thanks for reading all of it.