I don't think you are using this custom ROM (so it does not really make sense as a bug here), but an hypothesis would be that your battery requires a replacement.
@kenhill If you did not update your ROM recently, I think it is linked to this announcement
https://xiaomi.eu/community/threads/migration-of-ota-metadata-source.72743/