Although, if I were writing the law I would require selling DRM free ebooks for ebooks to count for maintaining the copyright.
This is actually a real issue when authors have deals where rights revert to them when the book goes out of print.
https://katemckean.substack.com/p/when-does-a-book-go-out-of...