I think I might (possibly) be experiencing the same type of problem with my ASI294MC-Pro. In my case, when capturing darks the first 300 second dark downloads OK, but subsequent dark downloads are corrupt/incomplete (either with a filesize of 0MB, or ~5MB - expected filesize would be ~23MB).
I also built from source.
Can you guide me on how to apply the rule you posted above? Are these commands to be entered from bash?