You might need to incorporate the expansion of the Pyrex beaker due to the increase in temperature.
IDK if your text has a value for the expansion of Pyrex glass, but the linear coefficient α = 3.2 × 10
-6 K
-1 @ 20° C
https://en.wikipedia.org/wiki/Thermal_expansion
Why not? When the Pyrex beaker expands, its volume increases slightly, but not as much as that of the coffee inside. The volume increase of the coffee doesn't depend on how much the beaker expands, but the amount of coffee spilled will be affected.