We have flown from Toronto to Honolulu through Vancouver, but it was over six years ago so things might be different now, especially because of Covid.
As I remember it, you do have a separate area to clear customs at Vancouver and there was a small lineup when we went through but it processed quite quickly. We were flying mid afternoon Vancouver time.
One thing I do remember about the Vancouver airport and this route in particular was that it was a fairly long walk from exiting our first flight through the terminal. I remember kind of panicking because it took so long to do that walk and I had not anticipated that. My plan had been to eat dinner at YVR and I was worried we weren’t gonna be able to do it. We ended up getting some very fast food and we did have time to sit and eat it. I think my son took the rest of his meal with him on the plane.
We were flying Air Canada that time and I’m pretty sure it’s a standard route. I’m sure that it will be ok and if for some weird reason your plane from YYZ into YVR is a little delayed you can always ask one of the flight attendants on your first plane to message ahead that you are connecting.