check the event that you are walking over when you get the error.
It should have the line
$game_map.change_tileset(#)
where the '#' is the number of the tileset you want to switch to.
Make sure the number references an existing tileset from your database.