Random Compile Errors

We are getting random compile errors via the API. All the CSDL blocks that failed via the API compiled with the console and the errors aren’t consistent. Sometimes a block works and sometimes it doesn’t