Taking the comments about a Timer in a stopwatch app into consideration, if you absolutely need to use the Timer in the class, you can mark it as @Transient and SwiftData will not persist it.
@Transient private var timer: Timer?