M5PaperS3 Simple Badge
I guess your code is based on the BarGraph example, correct? Well, I think the crash happens due to ending up with two displays, e.g. display and M5.Display. Modifying the code to only use M5.Display fixes the crash.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by felmue and has received 0 comments.