Bitcoin miners are facing historically low margins and are responding by pivoting some operations to AI infrastructure.